package org.dromara.comm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.dromara.comm.domain.AsLeaveIdle;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AsLeaveIdleMapper extends BaseMapper<AsLeaveIdle> {

    @Select("SELECT * FROM as_leave_idle WHERE category_id = #{categoryId} AND is_delete = 0")
    List<AsLeaveIdle> selectByCategoryId(String categoryId);
}
